package com.zr.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table
public class CharTrap {
	private Integer tpid;
	private Cdisstation cdisstationByDisid2;
	private Cdisstation cdisstationByDisid1;
	private Double tprice;
	private Double fkgc;
	private Double subkilogramme;
	private Double mtm;
	private String sta;
	
	
	@Id
	@GeneratedValue
	public Integer getTpid() {
		return tpid;
	}
	public void setTpid(Integer tpid) {
		this.tpid = tpid;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "disid2", nullable = false)
	public Cdisstation getCdisstationByDisid2() {
		return cdisstationByDisid2;
	}
	public void setCdisstationByDisid2(Cdisstation cdisstationByDisid2) {
		this.cdisstationByDisid2 = cdisstationByDisid2;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "disid1", nullable = false)
	public Cdisstation getCdisstationByDisid1() {
		return cdisstationByDisid1;
	}
	public void setCdisstationByDisid1(Cdisstation cdisstationByDisid1) {
		this.cdisstationByDisid1 = cdisstationByDisid1;
	}
	@Column(name = "tprice", precision = 22, scale = 0)
	public Double getTprice() {
		return tprice;
	}
	public void setTprice(Double tprice) {
		this.tprice = tprice;
	}
	@Column(name = "fkgc", precision = 22, scale = 0)
	public Double getFkgc() {
		return fkgc;
	}
	public void setFkgc(Double fkgc) {
		this.fkgc = fkgc;
	}
	@Column(name = "subkilogramme", precision = 22, scale = 0)
	public Double getSubkilogramme() {
		return subkilogramme;
	}
	public void setSubkilogramme(Double subkilogramme) {
		this.subkilogramme = subkilogramme;
	}
	@Column(name = "mtm", precision = 22, scale = 0)
	public Double getMtm() {
		return mtm;
	}
	public void setMtm(Double mtm) {
		this.mtm = mtm;
	}
	@Column(name = "sta", precision = 22, scale = 0)
	public String getSta() {
		return sta;
	}
	public void setSta(String sta) {
		this.sta = sta;
	}
	public CharTrap(Integer tpid, Cdisstation cdisstationByDisid2, Cdisstation cdisstationByDisid1, Double tprice,
			Double fkgc, Double subkilogramme, Double mtm) {
		super();
		this.tpid = tpid;
		this.cdisstationByDisid2 = cdisstationByDisid2;
		this.cdisstationByDisid1 = cdisstationByDisid1;
		this.tprice = tprice;
		this.fkgc = fkgc;
		this.subkilogramme = subkilogramme;
		this.mtm = mtm;
	}
	public CharTrap() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
}
